<%--
        Created by IntelliJ IDEA.
        User: 啥
        Date: 2022/12/7
        Time: 17:18
        To change this template use File | Settings | File Templates.
        --%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page language="java" %>
<%
        String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}};
        %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Java 二维数组示例</title>
</head>
<body>
<h1>Java 二维数组内容</h1>
<table   border="1" cellspacing="0" width="300" height="300">
<tr align="center">
<th>第一列</th>
<th>第二列</th>
<th>第三列</th>
</tr>
<%
        for (int i = 0; i < array.length; i++) {
        %>
<tr align="center">
<%
        for (int j = 0; j < array[i].length; j++) {
        %>
<td><%= array[i][j] %></td>
<%
        }
        %>
</tr>
<%
        }
        %>
</table>
</body>
</html>
